package fejezet20;

import java.awt.*;
import javax.swing.JApplet;                             //1
import javax.swing.JLabel;

public class HellóVilágApplet1 extends JApplet {        //2
  private JLabel lbHelló=new JLabel("Helló világ!");    //3

  @Override                                             //4
  public void init() {                                  //5
    setLayout(null);                                    //6
    lbHelló.setFont(new Font("Arial", Font.BOLD, 20));  //7
    lbHelló.setForeground(Color.RED);                   //8
    lbHelló.setBounds(100, 50, 200, 30);                //9
    add(lbHelló);                                      //10
  }
}